UNPKG

rollup-plugin-drupal-sdc-generator

Version:

This is a [Rollup](https://rollupjs.org) plugin that creates [single directory components](https://www.drupal.org/docs/develop/theming-drupal/using-single-directory-components) for embedding your app in a [Drupal](https://www.drupal.org) module or theme.

15 lines (14 loc) 462 B
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json name: My Component status: stable props: type: object libraryOverrides: dependencies: - core/drupal - core/once - core/drupalSettings js: # `[[name]]` will be replaced with the value "[name]". # Use `[[[name]]]` if you want the string `[[name]]` included verbatim. '[name].js': { attributes: { defer: true, type: "module" } }